package org.bravof.common;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量类
 */
public class Constants {
    /**
     * 数据库字段类型对应的Java数据类型映射
     */
    public static final Map<String, String> mySQLTypeMap;

    static {
        mySQLTypeMap = new HashMap<>();
        mySQLTypeMap.put("char", "String");
        mySQLTypeMap.put("varchar", "String");
        mySQLTypeMap.put("decimal", "BigDecimal");
        mySQLTypeMap.put("datetime", "Date");
        mySQLTypeMap.put("timestamp", "Date");
        mySQLTypeMap.put("int", "Integer");
    }

    /**
     * 下划线
     */
    public static final String UNDER_LINE = "_";

    /**
     * 英文点号
     */
    public static final String DOT = ".";

    public static final String COMMA = ",";

    /**
     * 分号
     */
    public static final String SEMICOLON = ";";
    /**
     * 冒号
     */
    public static final String COLON = ":";
    public static final String SLASH = "/";

    public static final String PACKAGE = "package";
    public static final String IMPORT = "import";
    public static final String IMPLEMENTS = "implements";
    public static final String PUBLIC = "public";
    public static final String PRIVATE = "private";
    public static final String CLASS = "class";
    public static final String STRING = "String";
    public static final String VARCHAR = "VARCHAR";
    public static final String JAVA = "java";



    public static final String SPACE = " ";

    public static final String NEW_LINE = "\n";

    public static final String BRACKETS_BIG_L = "{";
    public static final String BRACKETS_BIG_R = "}";

    public static final String BRACKETS_SMALL_L = "(";
    public static final String BRACKETS_SMALL_R = ")";


}
